T=20; n=[9,8,9,8,10,8,8,8,8,9,8,8,10,9,8,8,8,8,9,11]; a=[8,12,10,4,14,11,9,13,16,7,15,13,14,5,16,11,12,14,4,15,12,10,13,11,9,8,16,9,6,14,15,12,10,11,13,8,16,10,5,9,15,14,7,12,7,8,6,11,16,14,5,9,16,5,8,7,15,11,13,10,10,11,12,15,5,8,16,13,16,13,14,4,12,8,10,15,15,14,16,5,12,6,10,13,11,11,14,12,8,13,4,9,10,12,6,9,13,16,11,15,8,12,15,13,14,9,10,11,8,7,4,7,12,11,8,15,14,13,10,16,11,12,13,14,16,6,10,15,16,8,13,12,15,14,4,10,15,14,13,9,8,11,10,4,14,10,16,13,12,11,7,9,8,7,11,16,15,9,10,5,6,15,11,4,12,13,8,9,14,10,7,16];